package com.example.reagent_management.ui.message.pojo

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.*

/**
 * type : 提醒类型  0 1 2 温度 日期 库存
 */
@Entity(tableName = "message")
data class Message(
    @ColumnInfo(name = "message_id") @PrimaryKey(autoGenerate = true) var id: Long,
    var messages: String,
    var type: Int,
    var time:Long = Calendar.getInstance().timeInMillis,
    var remindId:Long = 0L
) {
    constructor(messages: String,type: Int) : this(0,messages,type)
}
